<?php 
    include_once '../header.inc';
    require_once '../conn.php';
?>

<div class="apmd bbcnavgray"><a href="../index.php">首页</a>&gt;<a href="../contactlist.php">联系人列表</a>&gt;添加联系人</div>

<div class="apmd">
    <form action="contact_add_group.php" method="POST">
        <p class="aclb">添加联系人(第1/3步)</p>
        <p>选择联系人身份</p>
        <p>
            <?php
                $sql = "select sid, sname from cc_identity where cc_id ='".$_GET['cid']."'";
                $res = $ms_cc_pdo->select($sql);
                $row = $res['result'];
                if(count($row) > 0 ){
            ?>
            <select id="slidentity" name="slidentity">
                <?php
                    foreach ($row as $key =>$item) {
                        echo '<option value='.$item['sid'].'>'.$item['sname'].'</option>';
                    }
                ?>
            </select>
            <?php
                }
            ?>
            <span><a href="../identity/identity_add.php?ref=acc&cid=<?php echo $_GET['cid']; ?>">新建身份</a></span>
            <?php
                if(count($row) > 0 ){
                    echo '<span><input type="hidden" name="txtcid" value='.$_GET['cid'] .' /></span>';
                    echo '<p><span><input type="submit" id="btn_add_group" name="btn_add_group" value="下一步" /></span></p>';
                }
            ?>
        </p>
    </form>
</div>

<?php include_once '../footer.inc'; ?>
